<template>
	<view class="edit-box">
	  <view style="margin:60rpx 0 70rpx 0;font-size:36rpx;">
	    <slot></slot>
	  </view>
	  <view class="btn-box">
	    <view class="mask-confirm-btn item-save-btn f-center" @click="_cancel">
	    取消
	  </view>
	  <view class="mask-cancel-btn item-save-btn f-center" @click="_confirm">
	    确定
	  </view>
	  </view>
	  
	</view>
</template>

<script>
	export default {
		props:['name'],
		data() {
			return {
				
			};
		},
		created(){
			this.staticName = this.name
		},
		methods:{
			_cancel(){
			  this.$emit('handledel',{confirm:false})
			},
			_confirm(){
			  this.$emit('handledel',{confirm:true,name:this.staticName})
			}
		}
	}
</script>

<style lang="scss">
@import './index.css'
</style>
